import { InjectionKey } from 'vue'
import { createStore, Store } from 'vuex'
import { UserInfo } from '@/type/UserInfo'

// 为 store state 声明类型
// export interface State {
//   count: number
// }

// 定义 injection key
export const key: InjectionKey<Store<UserInfo>> = Symbol()

export const store = createStore<UserInfo>({})